Skip to content

Conversation

vicb
Copy link
Contributor

@vicb vicb commented Oct 16, 2024

This will make it easier to reuse code (i.e. for opennext-cloudflare).

This PR is mainly moving code around.

I'll add inline comments for other differences to make the review easier.

Copy link

pkg-pr-new bot commented Oct 16, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/@opennextjs/aws@562

commit: 2da2d9c

* @param nodeExternals Externals for the Node.js compilation.
* @return The configuration and the build directory.
*/
export async function compileOpenNextConfig(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an added function.

It calls the two existing function for Node and edge if needed.

The edge test has been moved to this function.

@vicb vicb requested a review from conico974 October 16, 2024 10:53
Copy link
Contributor

@conico974 conico974 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few comment

@vicb vicb requested a review from conico974 October 16, 2024 12:09
Copy link
Contributor

@conico974 conico974 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks

@vicb
Copy link
Contributor Author

vicb commented Oct 16, 2024

Thanks for your help @conico974

@vicb vicb merged commit e0ed614 into main Oct 16, 2024
3 checks passed
@vicb vicb deleted the build/split branch October 16, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants